﻿<%@ Page Title="Blast Off Report" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="BlastOffReport.aspx.cs" Inherits="BlastOffReport" %>

<%@ Register src="ucLetters.ascx" tagname="ucLetters" tagprefix="uc2" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <link rel="stylesheet" type="text/css" href="css/admin.css" />
  <script language="javascript" type="text/javascript">
      var controldivname = 'ctl00_ContentPlaceHolder1_rgBlastOffReport';
  </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="95%" cellpadding="0" cellspacing="0" border="0">
<tr>

<style>
    .GridHeader_Default
    {
        padding-top:0px !important;
        padding-bottom:0px !important;
    }
</style>

<td colspan="2">
	<div class="wrap4"><div class="abcd">

	<table width= "100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
	        <td align="left" valign="middle">
                <asp:Label ID="Label1" runat="server" Text="Student Name:"></asp:Label>
			    <asp:TextBox ID="tbName" runat="server" Width="150"></asp:TextBox>
                <asp:Label ID="Label2" runat="server" Text="Section:"></asp:Label>
                <asp:DropDownList ID="dropLstSection" runat="server" Width="250" CssClass="filter-ddl" style="padding:2px;">
                    <asp:ListItem>Select a Section</asp:ListItem>
                </asp:DropDownList>
                <!-- TODO: change the ImageUrl -->
                <asp:ImageButton ID="btnGo"  runat="server" ImageUrl="images/go_button2.png" 
			        Text="Search" style="height: 17px" OnClick="btnGo_Click" />
            </td>
            
            <td align="right"><asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" 
		        onclick="lbExport_Click" ToolTip="Export to Excel" ></asp:ImageButton>
            </td>
		</tr>
	</table>
	
<div class="clr"></div>
</div></div>
<div class="clr"></div>
</td>
</tr>
</table>

<table style="width:900px;">
    <tr>
        <td align="center">

            <telerik:radscriptmanager ID="RadScriptManager1" Runat="server">
            </telerik:radscriptmanager>

            <telerik:RadGrid runat="server" ID="rgBlastOffReport"  Height="400px" Width="900px"
                             AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" PageSize="20" AutoGenerateColumns="False" GridLines="Both"
                             OnNeedDataSource="rgBlastOffReport_NeedDataSource">
                             <ClientSettings>
                                <Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="True"></Scrolling>
                             </ClientSettings>
                             <HeaderStyle  Font-Bold="True" Font-Underline="False" Font-Size="9" HorizontalAlign="Center"  />
                             <MasterTableView Width="100%">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="lastfirst" HeaderText="Student Name" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" FilterControlWidth="100" />
                                    <telerik:GridBoundColumn DataType="System.String" DataField="STUDENT_ID" HeaderText="Student ID" ReadOnly="true" HeaderStyle-HorizontalAlign="Center"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right"/>
                                    <telerik:GridBoundColumn DataField="course_name" HeaderText="Section Name" ReadOnly="true" HeaderStyle-HorizontalAlign="Center"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Left" FilterControlWidth="160" />
                                    <telerik:GridBoundColumn DataType="System.String" DataFormatString="{0:MM/dd/yy}" DataField="start_day" HeaderText="Start Date" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"/>  
                                    <telerik:GridBoundColumn DataType="System.String" DataFormatString="{0:MM/dd/yy}" DataField="FIRST_DATE_ACCESSED" HeaderText="First date accessed" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"/>    
                                    <telerik:GridBoundColumn DataType="System.String" DataFormatString="{0:MM/dd/yy}" DataField="last_date_accessed" HeaderText="Last Date Accessed" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"/>    
                                    <telerik:GridBoundColumn DataType="System.String" DataField="days_since_last_access" HeaderText="Days Since Last Access" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>  
                                    <telerik:GridBoundColumn DataType="System.String" DataFormatString="{0:MM/dd/yy}" DataField="last_date_submitted" HeaderText="Last Date Submitted" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"/>        
                                    <telerik:GridBoundColumn DataType="System.String" DataField="days_since_submitted" HeaderText="Days Since Submitted" ReadOnly="true" HeaderStyle-HorizontalAlign="Center"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right"/>                                        
                                    <telerik:GridBoundColumn DataType="System.String" DataField="total_time_in_min_prev_week" HeaderText="Total Time in Min Prev Wk" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>    
                                    <telerik:GridBoundColumn DataType="System.String" DataField="total_time_in_minutes" HeaderText="Total Time in Minutes" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>   
                                    <telerik:GridBoundColumn DataType="System.String" DataField="percent_complete" HeaderText="Percent Complete" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>   
                                    <telerik:GridBoundColumn DataType="System.String" UniqueName="GRADE_TO_DATE" DataField="GRADE_TO_DATE" HeaderText="Grade to date" ReadOnly="true"
                                        ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>

                                </Columns>
                                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                             </MasterTableView>
        </telerik:RadGrid>

	    </td>
</tr>
</table>
</asp:Content>



